<style>
	#ebiz-container {width: 720px;height: 100px;background-color: #fff; margin: 0 auto; font-family: Verdana; border:none;}
	#ebiz-container .products {width: 720px;height: 100px;padding-left: 8px;margin:0 auto;}
	#ebiz-container .products .item { text-align: center; margin: 0px 8px 0px 8px;padding-top: 0px;width: 100px;height: 100px;background-color: #FFF; float: left;}
    #ebiz-container .products .item img {border: solid 1px #CCC;}
	#ebiz-container .products p { margin: 0px; padding: 0px;}
	#ebiz-container .products .item p.price {}
    #ebiz-container .products .item p.price a {color: #0000EE; font-size: 11px; font-weight: bold;}
</style>

<div class="iframe-shoponsite-123mua-top">Sản phẩm được xem xem nhiều</div>
<div id="iframe-shoponsite-123mua">
  <div id="ebiz-container">
		<div class="products">            
            
	<?	
		if(isset($_GET['cid'])){
			$cid = intval($_GET['cid']);
			
		}else{
			$cid = loadTopLoaiSanPham();
		}
		$rs = $db->query("SELECT * FROM ".$prefix."sanpham WHERE t_loaisanpham = '".$cid."' AND t_hienthi = 1 ORDER BY t_solanxem DESC LIMIT 6");
		while($row = $db->fetch_array($rs)){
			$t_id = $row[t_id];
			$t_tieude = stripslashes($row[t_tieude]);
			$t_hinhanh = $PathThumbFile . stripslashes($row[t_hinhanh]);
			if($row[t_giaban] == 0){
				$t_giaban = "Call";
			}else{
				$t_giaban = showprice(stripslashes($row[t_giaban])) ." ". loadLoaiTien($row[t_loaitien]);
			}
	?>		
			<div class="item" style="margin-left: 10px;">
                <a target="_blank" title="<?=$t_tieude?>" href="<?=$root?>/chi-tiet-san-pham/<?=$t_id?>/<?=$myString->vietdecode($t_tieude)?>">
                    <img src="<?=$root?>/<?=$t_hinhanh?>" alt="<?=$t_tieude?>" border="0" onerror="this.src='<?=$root?>/themes/images/noimg.jpg'"; width="100" height="100">
                </a>               
	 <p class="price">
            		<a target="_blank" title="<?=$t_tieude?>" href="<?=$root?>/chi-tiet-san-pham/<?=$t_id?>/<?=$myString->vietdecode($t_tieude)?>">
             	 		<?=$t_giaban?>
            		</a>

          	 </p>
            </div>
     <? }?>       
            
        </div>   
    </div>                       
</div>